<%@ page contentType="text/html; charset=UTF-8" %>
<!-- 引入JSTL标签库 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>Spring Boot AOP在省级安全生产管理系统的应用</title>
	<<!-- 新 Bootstrap 核心 CSS 文件 -->
	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
	<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<!-- 自定义CSS文件 -->
	<c:set var="resourcesPath" value="${pageContext.request.contextPath}"></c:set>
	<link href="${resourcesPath}/jsp/assets/css/staffManageStyle.css" rel="stylesheet" />
	<link href="${resourcesPath}/jsp/assets/css/staffChangeStyle.css" rel="stylesheet" />
	<link href="${resourcesPath}/jsp/assets/css/loginStyle.css" rel="stylesheet" />
	<style>

	</style>
</head>
<body>
<div class="container">
	<div class="row">
		<div class="col-md-offset-3 col-md-6">
			<form action="${pageContext.request.contextPath}/user/authenticate" class="form-horizontal" method="post" >
				<span class="heading">登录</span>
				<div class="form-group">
					<input type="text" class="form-control" name="account" id="inputEmail3" placeholder="用户名" required>
					<i class="fa fa-user"></i>
				</div>
				<div class="form-group help">
					<input type="password" class="form-control"  name="passwd" id="inputPassword3" placeholder="密　码" required>
					<i class="fa fa-lock"></i>
					<a href="#" class="fa fa-question-circle"></a>
				</div>
				<div class="form-group">
					<div class="main-checkbox">
						<input type="checkbox" value="None" id="checkbox1" name="check" />
						<label for="checkbox1"></label>
					</div>
					<div class="form-group">
						<span class="text">Remember me</span>
						<button type="submit" id="login" class="btn btn-default" >登录</button>
					</div>
				</div>
				<a href="${pageContext.request.contextPath}/user/register">没有账号？点击转到注册</a>
			</form>
		</div>
	</div>
</div>
<script>
	$(document).ready(function(){
		if(${empty exist}){

		}else{
			alert("账号或密码已存在");
		}
	});
</script>
</body>
</html>
